import request from '@/utils/request'

// 查询曲线分组列表
export function listCurveGroup(query) {
  return request({
    url: '/manage-api/business/curveGroup/list',
    method: 'get',
    params: query
  })
}

// 查询曲线分组详细
export function getCurveGroup(curveGroupId) {
  return request({
    url: '/manage-api/business/curveGroup/' + curveGroupId,
    method: 'get'
  })
}

export function getCurveGroupListByUserModuleId(userModuleId) {
  return request({
    url: '/manage-api/business/curveGroup/getCurveGroupListByUserModuleId/' + userModuleId,
    method: 'get'
  })
}

// 新增曲线分组
export function addCurveGroup(data) {
  return request({
    url: '/manage-api/business/curveGroup',
    method: 'post',
    data: data
  })
}

// 修改曲线分组
export function updateCurveGroup(data) {
  return request({
    url: '/manage-api/business/curveGroup',
    method: 'put',
    data: data
  })
}

// 删除曲线分组
export function delCurveGroup(curveGroupId) {
  return request({
    url: '/manage-api/business/curveGroup/' + curveGroupId,
    method: 'delete'
  })
}
